<?php
	/**
	 * Created by PhpStorm.
	 * User: mybook-lhp
	 * Date: 18/6/13
	 * Time: 下午6:44
	 */

	namespace app\store\api;

	use app\common\controller\API;
	use app\store\model\SliderTypeModel;
 
	class SlideType extends API
	{
		/**
		 * 轮播图类型列表
		 * @throws \think\db\exception\DataNotFoundException
		 * @throws \think\db\exception\ModelNotFoundException
		 * @throws \think\exception\DbException
		 */
		public function lists()
		{
			$this->result(SliderTypeModel::field('id,name')->where(['status' => 1])->select());
		}
	}